package com.ruoyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.controller.common.DTO.SCommonFile;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SCommonFileMapper {
    // ✅ 无需写基本 CRUD，MyBatis-Plus 已经提供：
    // insert、selectById、updateById、deleteById、selectList 等
    @Insert(" INSERT INTO s_common_file (file_name, add_time, file_path)\n" +
            "        VALUES (#{fileName}, #{addTime}, #{filePath})")
    void insert(SCommonFile sCommonFile);
}